#!/bin/bash

yum install git

basePath=/opt

cd $bashPath

git clone https://github.com/excalidraw/excalidraw.git

vim $bashPath/excalidraw/

#=========================================================
version: "3.8"

services:
  excalidraw:
    build:
      context: .
      args:
        - NODE_ENV=development
    container_name: excalidraw
    ports:
      - "16869:80"
    restart: on-failure
    stdin_open: true
    healthcheck:
      disable: true
    environment:
      - NODE_ENV=development
    volumes:
      - ./:/opt/node_app/app:delegated
      - ./package.json:/opt/node_app/package.json
      - ./yarn.lock:/opt/node_app/yarn.lock
      - notused:/opt/node_app/app/node_modules

volumes:
  notused:
#=========================================================


docker-compose up --build -d
